package cn.bdqn.services.dept.mapper;


import java.util.List;

import cn.bdqn.model.pojo.*;
import org.apache.ibatis.annotations.Param;

import javax.annotation.security.PermitAll;

public interface SysUserinfoMapper {
    long countByExample(SysUserinfoExample example);

    int deleteByExample(SysUserinfoExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(SysUserinfo record);

    int insertSelective(SysUserinfo record);

    List<SysUserinfo> selectByExample(SysUserinfoExample example);

    SysUserinfo selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") SysUserinfo record, @Param("example") SysUserinfoExample example);

    int updateByExample(@Param("record") SysUserinfo record, @Param("example") SysUserinfoExample example);

    int updateByPrimaryKeySelective(SysUserinfo record);

    int updateByPrimaryKey(SysUserinfo record);
    List<Role> getRoleListUser(int uid);
    SysUserinfo login(@Param("username") String username, @Param("password") String password);
    List<Menu> getMenuRoleList(@Param("roles") String[] roles);
    SysUserinfo selectId (int id);
    int deleteId(int uid);
    int addRole(@Param("uid")int uid, @Param("rid")int rid);
}